package com.zmx.piglearn.fragment

import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.zmx.piglearn.R

class FragOne(private val content: String) : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view = inflater.inflate(R.layout.frag1, container, false)
        val txtContent = view.findViewById<TextView>(R.id.frag_content)
        txtContent.text = content
        return view
    }
}